package com.ruoyi.base.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 得分对象 b_score
 *
 * @author ruoyi
 * @date 2024-03-25
 */
public class BScore extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long scoreId;

    /** 题目主键 */
    @Excel(name = "题目主键")
    private Long topicId;

    /** 试卷主键 */
    @Excel(name = "试卷主键")
    private Long paperId;

    /** 用户主键 */
    @Excel(name = "用户主键")
    private Long userId;

    /** 得分 */
    @Excel(name = "得分")
    private Long score;

    /** 回答结果 */
    @Excel(name = "回答结果")
    private String answerResult;

    public void setScoreId(Long scoreId)
    {
        this.scoreId = scoreId;
    }

    public Long getScoreId()
    {
        return scoreId;
    }
    public void setTopicId(Long topicId)
    {
        this.topicId = topicId;
    }

    public Long getTopicId()
    {
        return topicId;
    }
    public void setPaperId(Long paperId)
    {
        this.paperId = paperId;
    }

    public Long getPaperId()
    {
        return paperId;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setScore(Long score)
    {
        this.score = score;
    }

    public Long getScore()
    {
        return score;
    }
    public void setAnswerResult(String answerResult)
    {
        this.answerResult = answerResult;
    }

    public String getAnswerResult()
    {
        return answerResult;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("scoreId", getScoreId())
                .append("topicId", getTopicId())
                .append("paperId", getPaperId())
                .append("userId", getUserId())
                .append("score", getScore())
                .append("answerResult", getAnswerResult())
                .toString();
    }
}
